package com.api.phm.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.api.common.language.LanguageBean;
import lombok.Data;

import java.util.Date;

@Data
public class RealTimePageVo {
    private Long plcId;
    private Long elementId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    private String appLang = LanguageBean.getInitLang();

    public Date getStartTime() {
        if (startTime == null)
            startTime = new Date();
        return startTime;
    }
}
